﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NhanAi.Admin
{
    public partial class Admin : System.Web.UI.MasterPage
    {
       
        public string Message{get{
            if (Session["message_count_get"] != null)
            {
                int c = Home.Utils.TypeWrapper.GetInt32(Session["message_count_get"].ToString());
                c--;
                Session["message_count_get"] = c;
                if (c < 0) Session["message"] = null;
            }
            else
            {
                Session["message_count_get"] = 0;
            }
            return Session["message"]!=null?Session["message"].ToString():null;
        }}
        public string CurrentPage { get { return Session["current_page"] != null ? Session["current_page"] .ToString(): ""; } }
        public NhanAi.Entity.User CurrentUser { get { return Session["user"] as NhanAi.Entity.User; } }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}